import React, { Component } from 'react';
import ReactDOM from 'react-dom';

export default class Hello extends Component {
       constructor(){
           super();
           this.state={
               msg:"hello"
           };
       }
       render(){
           return <div>Es6 类继承实现Component---{this.props.name}---{this.props.age}---{this.state.msg}</div>;
       }
}